/**
 * Copyright (C), 2020-2021 by colley.ma
 * File Name: SwakMapperScan.java
 * Encoding: UTF-8
 * Date: 2021年4月12日 下午1:48:45
 * History:
*/
package com.swak.frame.mybatis.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.core.annotation.AliasFor;

import com.swak.frame.mybatis.constants.SwakDataBaseConstants;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@MapperScan
public @interface SwakMapperScan {

	@AliasFor(value = "basePackages", annotation = MapperScan.class)
	String[] basePackages() default {};

	String sqlSessionTemplateRef() default SwakDataBaseConstants.READ_WRITE_SQLSESSION_TEMPLATE;
}
